import axios from 'axios'
export function postUpload (file) {// 建模文件上传
    return axios({
        url: 'system/model/file',
        method: 'post',
        data: file,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
export function postUploadPredict (file) {// 预测文件上传
    return axios({
        url: 'system/prediction/file',
        method: 'post',
        data: file,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
export function postRequestModelName (url,param) {
    return axios({
        url: url+"?modelName="+param,
        method: 'post',
    })
}


